package com.xunqi.weixinpar.service.impl;

import com.xunqi.weixinpar.dao.OrderMapper;
import com.xunqi.weixinpar.entity.Order;
import com.xunqi.weixinpar.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class OrderServiceImpl implements OrderService {
    @Resource
    private OrderMapper orderMapper;

    @Override
    public int saveOrder(Order order) {
        return orderMapper.insert(order);
    }

    @Override
    public Order findByOrderNo(String orderNo) {
        return orderMapper.findByOrderNo(orderNo);
    }

    @Override
    public int updateStatus(Order order) {
        return orderMapper.updateStatus(order);
    }
}
